home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3sphere.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.7 KB  |  115 lines

  1.  
  2. // JavaScript wrapper for r3sphere.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_SPHERE_H = 1;
  7. include("oops/r3vector.js")
  8. include("real/objects/r3prim.js")
  9.  
  10.  
  11. var R3CLID_SPHERE = 131;
  12.  
  13.  
  14.  
  15.  
  16. R3SPHA_Center = 131501;
  17. function SetR3SPHA_Center(value) {
  18.   R3Set(this.r3obj, R3SPHA_Center, value, R3TID_VECTOR, 0); 
  19. }
  20.  
  21. function GetR3SPHA_Center() {
  22.   return R3Get(this.r3obj, R3SPHA_Center, R3TID_VECTOR, 0); 
  23. }
  24.  
  25. R3SPHA_A = 131502;
  26. function SetR3SPHA_A(value) {
  27.   R3Set(this.r3obj, R3SPHA_A, value, R3TID_VECTOR, 0); 
  28. }
  29.  
  30. function GetR3SPHA_A() {
  31.   return R3Get(this.r3obj, R3SPHA_A, R3TID_VECTOR, 0); 
  32. }
  33.  
  34. R3SPHA_B = 131503;
  35. function SetR3SPHA_B(value) {
  36.   R3Set(this.r3obj, R3SPHA_B, value, R3TID_VECTOR, 0); 
  37. }
  38.  
  39. function GetR3SPHA_B() {
  40.   return R3Get(this.r3obj, R3SPHA_B, R3TID_VECTOR, 0); 
  41. }
  42.  
  43. R3SPHA_C = 131504;
  44. function SetR3SPHA_C(value) {
  45.   R3Set(this.r3obj, R3SPHA_C, value, R3TID_VECTOR, 0); 
  46. }
  47.  
  48. function GetR3SPHA_C() {
  49.   return R3Get(this.r3obj, R3SPHA_C, R3TID_VECTOR, 0); 
  50. }
  51.  
  52. R3SPHA_Radius = 131505;
  53. function SetR3SPHA_Radius(value) {
  54.   R3Set(this.r3obj, R3SPHA_Radius, value, R3TID_FLOAT, 0); 
  55. }
  56.  
  57. function GetR3SPHA_Radius() {
  58.   return R3Get(this.r3obj, R3SPHA_Radius, R3TID_FLOAT, 0); 
  59. }
  60.  
  61. R3SPHA_LengthA = 131506;
  62. function SetR3SPHA_LengthA(value) {
  63.   R3Set(this.r3obj, R3SPHA_LengthA, value, R3TID_FLOAT, 0); 
  64. }
  65.  
  66. function GetR3SPHA_LengthA() {
  67.   return R3Get(this.r3obj, R3SPHA_LengthA, R3TID_FLOAT, 0); 
  68. }
  69.  
  70. R3SPHA_LengthB = 131507;
  71. function SetR3SPHA_LengthB(value) {
  72.   R3Set(this.r3obj, R3SPHA_LengthB, value, R3TID_FLOAT, 0); 
  73. }
  74.  
  75. function GetR3SPHA_LengthB() {
  76.   return R3Get(this.r3obj, R3SPHA_LengthB, R3TID_FLOAT, 0); 
  77. }
  78.  
  79. R3SPHA_LengthC = 131508;
  80. function SetR3SPHA_LengthC(value) {
  81.   R3Set(this.r3obj, R3SPHA_LengthC, value, R3TID_FLOAT, 0); 
  82. }
  83.  
  84. function GetR3SPHA_LengthC() {
  85.   return R3Get(this.r3obj, R3SPHA_LengthC, R3TID_FLOAT, 0); 
  86. }
  87.  
  88.  
  89.  
  90. function r3Sphere () { 
  91.    this.base = r3God;
  92.    if(arguments.length) {
  93.       this.base(R3CLID_SPHERE, arguments);
  94.    }
  95.    // Attributes
  96.    this.GetCenter=GetR3SPHA_Center;
  97.    this.SetCenter=SetR3SPHA_Center;
  98.    this.GetA=GetR3SPHA_A;
  99.    this.SetA=SetR3SPHA_A;
  100.    this.GetB=GetR3SPHA_B;
  101.    this.SetB=SetR3SPHA_B;
  102.    this.GetC=GetR3SPHA_C;
  103.    this.SetC=SetR3SPHA_C;
  104.    this.GetRadius=GetR3SPHA_Radius;
  105.    this.SetRadius=SetR3SPHA_Radius;
  106.    this.GetLengthA=GetR3SPHA_LengthA;
  107.    this.SetLengthA=SetR3SPHA_LengthA;
  108.    this.GetLengthB=GetR3SPHA_LengthB;
  109.    this.SetLengthB=SetR3SPHA_LengthB;
  110.    this.GetLengthC=GetR3SPHA_LengthC;
  111.    this.SetLengthC=SetR3SPHA_LengthC;
  112. }
  113.  
  114. r3Sphere.prototype=new r3Primitive;
  115. // r3sphere.h_H